#ifndef ITEMDRAGEFFECT_H
#define ITEMDRAGEFFECT_H

#include <QGraphicsEffect>
#include <QPainter>
#include <QDebug>

class UmlGraphicsItem;

class ItemDragEffect : public QGraphicsEffect
{
    friend class UmlRelationalItem;

public:
    ItemDragEffect(UmlGraphicsItem *graphicsItem);

    void setAcceptDrop(bool accept);

    void draw(QPainter *painter);

protected:
    UmlGraphicsItem *_graphicsItem;

    QColor _bgColor;

    QPixmap _pixmap;
};
#endif // ITEMDRAGEFFECT_H
